projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f666c
)
Fix small regression for horizontal scroll bars
author
Po Lu
<luangruo@yahoo.com>
Sun, 13 Mar 2022 07:27:24 +0000
(07:27 +0000)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 13 Mar 2022 07:27:24 +0000
(07:27 +0000)
* src/haikuterm.c (haiku_read_socket): Restore previous
horizontal scrollbar code, since the change it was intended for
was never made.
src/haikuterm.c
patch
|
blob
|
history
diff --git
a/src/haikuterm.c
b/src/haikuterm.c
index c98ab13e1a90c43c5b97fd4c4a45f1766175cb9a..6f8d2eaac592292500d4c39594e622113929dafe 100644
(file)
--- a/
src/haikuterm.c
+++ b/
src/haikuterm.c
@@
-3285,8
+3285,8
@@
haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
if (bar->horizontal)
{
- portion = bar->total *
ceil ((double
) b->position
-
/ BE_SB_MAX);
+ portion = bar->total *
((float
) b->position
+ / BE_SB_MAX);
whole = (bar->total
* ((float) (BE_SB_MAX - bar->page_size)
/ BE_SB_MAX));